<?php
/**
 * User: lie
 * Date: 2020/12/9 12:51
 * Title: 字符串与数组的转换
 * Description:
 * Error:
 */
$a = "123";
$b = (array)$a;
echo "字符串转为数组：";
print_r($b);
echo "<br>";
$c = array("1");
$d = (string)$c[0];
echo "<br>";
echo "数组转换为字符串：";
echo $d;